package com.xcf.service.business.finance.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.finance.TellerManageService;
import com.xcf.util.PageData;


@Service("tellerManageService")
public class TellerManageServiceImpl implements TellerManageService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	public List<PageData> findPaymentDayPaperInfo(PageData pd) throws Exception {
		
		return (List<PageData>)dao.findForList("tellerManage.findPaymentDayPaper", pd);
	}

	@SuppressWarnings("unchecked")
	public List<PageData> findpaymentMoneyInfo(PageData pd) throws Exception {
		
		return (List<PageData>)dao.findForList("tellerManage.findpaymentMoney", pd);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findPaymentMoneyDetall(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>)dao.findForList("tellerManage.findPaymentMoneyDetall", pd);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findMoneyInfo(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>)dao.findForList("tellerManage.findMoneyInfo", pd);
	}

	@Override
	public void eidtConfirm(PageData pd) throws Exception {
		dao.update("tellerManage.updatePaymentDayPaper", pd);
	}

	@Override
	public void editPayMoney(PageData pd) throws Exception {
		dao.update("tellerManage.updatePaymentMoney", pd);
		
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findPaymentDayPaperByState(PageData pd) throws Exception {
		
		return (List<PageData>)dao.findForList("tellerManage.findPaymentDayPaperByState", pd);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findpaymentMoneyByState(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return  (List<PageData>)dao.findForList("tellerManage.findpaymentMoneyByState", pd);
	}

}
